<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/10
 * Time: 17:26
 */

namespace App\Services;

use App\Models\Order;

class OrderService extends BaseService
{
    protected $modelClass = Order::class;

    /**
     * 测试方法
     */
    public function index()
    {

    }

    /**
     * 详情
     * @param $uuid
     * @return mixed
     * @throws \Exception
     */
    public function detail($uuid)
    {
        return $this->findByUuidOrFail($uuid)->with(['user', 'orderGoods', 'orderAddress', 'orderComment', 'orderStatusLogs', 'orderPay']);
    }
}